/**
 * 
 */
package com.objectdraw.client;

import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

/**
 * @author Harrison
 * 
 */
public class CollabDraw {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setTitle("CollabDraw - Iteration 01");
		frame.getContentPane().setLayout(new BorderLayout());
		frame.getContentPane().add(new GuiServerConnect());
		frame.addWindowListener(new AppCloser());
		frame.pack();
		frame.setSize(600,400);
		frame.setVisible(true);
	}

	/* Inner class AppCLoser for terminating application */
	/* when Close Window button of frame is clicked */

	static class AppCloser extends WindowAdapter {
		public void windowClosing(WindowEvent e) {
			System.exit(0);
		}
	}
}
